package com.seleniti.enpareja.controller.common.domain;

import java.util.List;

public class Page<T> {

	private List<T> elements;
	private long total;

	public List<T> getElements() {
		return elements;
	}

	public void setElements(List<T> elements) {
		this.elements = elements;
	}

	public long getTotal() {
		return total;
	}

	public void setTotal(long total) {
		this.total = total;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Page [").append(elements!=null ? elements.size() : 0).append("/").append(total).append("]");
		return builder.toString();
	}

}
